#include "basepageworker.h"
#include "../model/osdremoteservicemodel.h"
#include "../osdglobal.h"

BasePageWorker::BasePageWorker(QObject *parent) :
    QObject(parent)
{
}

void BasePageWorker::work(int index)
{
    if (index == 0)
    {
        //输出模式

        OSDRemoteServiceModel::instance().config("dual_display");
        //显示本地
        OSDRemoteServiceModel::instance().config("show_local_video");

        //会议主流设置

        OSDRemoteServiceModel::instance().config("conf_video_stream");

        //会议辅流设置
        OSDRemoteServiceModel::instance().config("conf_document_stream");
    }
    else if (index == 1)
    {
        //输入接口
        OSDRemoteServiceModel::instance().config("audio_input_type");

        //输入音量
        OSDRemoteServiceModel::instance().config("audio_input_volume");

        //输出音量
        OSDRemoteServiceModel::instance().config("audio_output_volume");
    } else if (index == 2)
    {

        //启用一级平台
        OSDRemoteServiceModel::instance().config("enable_platform_server");

        //启用运营服务器
        OSDRemoteServiceModel::instance().config("enable_operation_server");

        //远程服务器ip
        OSDRemoteServiceModel::instance().config("platform_server_address");

        //远程端口
        OSDRemoteServiceModel::instance().config("platform_server_port");

        //svc服务器ip
        OSDRemoteServiceModel::instance().config("svc_server_address");

        //svc端口
        OSDRemoteServiceModel::instance().config("svc_server_port");
    }

}
